﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using BuildPlannerLib.Buildings;

namespace BuildPlannerLib.Terran.Buildings
{
    // Derived class from Building for addon buildings
    public class AddonBuilding : ProductionBuilding
    {
        // Constructor with parameters for name, cost, time duration, supply produced, and requirement
        public AddonBuilding(string name, int mineralCost, int gasCost, int timeDuration, string requirement)
        {
            Name = name;

            MineralCost = mineralCost;
            GasCost = gasCost;
            TimeDuration = timeDuration;

            Requirement = requirement;

            IndividualBuildings = new List<IndividualBuilding>();
        }

        // Overrides AddBuilding() to add a new instance of IndividualAddonBuilding to the IndividualBuildings list
        public override void AddBuilding()
        {
            IndividualBuildings.Add(new IndividualAddonBuilding());
        }
    }
}
